<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
    <div class="main-item">
        <h3 class="tit">总体统计<i class="icon"></i></h3>
        <div class="info-box clearfix">
            <div class="info-item">
                <div class="info-btn info-btn5">
                    <div class="content">
                        <h3 class="title">最多接单数</h3>
                        <p class="num" id="sellerOrders"></p>
                    </div>
                </div>
            </div>
            <div class="info-item">
                <div class="info-btn info-btn6">
                    <div class="content">
                        <h3 class="title">最多抢单数</h3>
                        <p class="num" id="buyerOrders"></p>
                    </div>
                </div>
            </div>
            <div class="info-item">
                <div class="info-btn info-btn7">
                    <div class="content">
                        <h3 class="title">最多行程数</h3>
                        <p class="num" id="maxTrips"></p>
                    </div>
                </div>
            </div>
            <div class="info-item">
                <div class="info-btn info-btn8">
                    <div class="content">
                        <h3 class="title">总额</h3>
                        <p class="num" id="totalAmount"></p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    function getGeneralStatistics(){
        common.ajax("{:U('Admin/Index/getGeneralStatistics')}",{},function (data) {
            $("#sellerOrders").html((data.sellerOrders.real_name ? data.sellerOrders.real_name : (data.sellerOrders.user_name ? data.sellerOrders.user_name : '')) + " " + (data.sellerOrders.total ? data.sellerOrders.total : 0)+" 笔");
            $("#buyerOrders").html((data.buyerOrders.real_name ? data.buyerOrders.real_name : (data.buyerOrders.user_name ? data.buyerOrders.user_name : '')) + " " + (data.buyerOrders.total ? data.buyerOrders.total : 0)+" 笔");
            $("#maxTrips").html((data.maxTrips.real_name ? data.maxTrips.real_name : (data.maxTrips.user_name ? data.maxTrips.user_name : '')) + " " + (data.maxTrips.total ? data.maxTrips.total : 0)+" 次");
            $("#totalAmount").html((data.totalAmount ? data.totalAmount : 0.00)+" 元");

        });
    }
</script>